From 4a0b492a66c330e8cae33ea144c0dd045aee8290 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Wed, 17 May 2006 15:52:10 -0600 Subject: [PATCH] [IA64] Fix VTi domain destroy bug This patch will fix VTi domain destroy bug. On tip, we couldn't destroy VTi successfully at times. It was caused by misusing vhpt base address for VTi domain in vhpt_flush function. Signed-off-by : Zhang xiantao --- xen/arch/ia64/xen/vhpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/vhpt.c b/xen/arch/ia64/xen/vhpt.c index 59e6199a7f..f54e2a832e 100644 --- a/xen/arch/ia64/xen/vhpt.c +++ b/xen/arch/ia64/xen/vhpt.c @@ -25,7 +25,7 @@ DEFINE_PER_CPU (unsigned long, vhpt_pend); static void vhpt_flush(void) { - struct vhpt_lf_entry *v = (struct vhpt_lf_entry *)VHPT_ADDR; + struct vhpt_lf_entry *v = __va(__ia64_per_cpu_var(vhpt_paddr)); int i; for (i = 0; i < VHPT_NUM_ENTRIES; i++, v++) -- 2.30.2